# 练习3：打印如下所示的三角形图案。
# *
# **
# ***
# ****
# *****
#     *
#    **
#   ***
#  ****
# *****
#     *
#    ***
#   *****
#  *******
# *********

if __name__ == '__main__':
    for i in range(1, 6):
        print('*'*i)

    for i in range(1, 6):
        print(' '*(5-i) + '*'*i)

    for i in range(1, 6):
        print((5 - i)*' ' + ((i - 1) * 2 + 1)*'*')

        # 1, 4
        # 3, 3
        # 5, 2
        # 7, 1
        # 9, 0
